package org.jeecg.modules.purchaseList.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 采购表单
 * @Author: jeecg-boot
 * @Date:   2023-12-12
 * @Version: V1.0
 */
@ApiModel(value="mt_purchase对象", description="采购表单")
@Data
@TableName("mt_purchase")
public class MtPurchase implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**单据号*/
	@Excel(name = "单据号", width = 15)
    @ApiModelProperty(value = "单据号")
    private java.lang.String receiptId;
	/**需要货品的服务站*/
	@Excel(name = "机构id", width = 15)
    @ApiModelProperty(value = "机构id")
    private java.lang.String organizationId;
    /**需要货品的服务站*/
    @Excel(name = "机构名称", width = 15)
    @ApiModelProperty(value = "机构名称")
    private java.lang.String organizationName;
	/**提供货物的服务商*/
	@Excel(name = "供应商", width = 15, dictTable = "mt_service_providers", dicText = "pro_name", dicCode = "id")
    @Dict(dictTable = "mt_service_providers", dicText = "pro_name", dicCode = "id")
    @ApiModelProperty(value = "供应商")
    private java.lang.String providerId;
	/**总费用*/
	@Excel(name = "总费用", width = 15)
    @ApiModelProperty(value = "总费用")
    private java.lang.Double totalCost;
	/**采购人员id*/
	@Excel(name = "采购人员id", width = 15/*, dictTable = "mt_buyer", dicText = "buyer_name", dicCode = "id"*/)
   /* @Dict(dictTable = "mt_buyer", dicText = "buyer_name", dicCode = "id")*/
    @ApiModelProperty(value = "采购人员id")
    private java.lang.String purchaseBuyerId;
    /**采购人员姓名*/
    @Excel(name = "采购人员姓名", width = 15)
    @ApiModelProperty(value = "采购人员姓名")
    private java.lang.String purchaseBuyerName;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
	/**单据状态*/
	@Excel(name = "单据状态", width = 15)
    @Dict(dicCode = "is_audit")
    @ApiModelProperty(value = "单据状态")
    private java.lang.String purchaseState;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private java.lang.Integer equipNum;
	/**单据类型*/
	@Excel(name = "单据类型", width = 15)
    @Dict(dicCode = "invoices_type")
    @ApiModelProperty(value = "单据类型")
    private java.lang.String invoicesType;
	/**审核时间*/
	@Excel(name = "审核时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核时间")
    private java.util.Date auditTime;
	/**关联的单子id*/
	@Excel(name = "关联的单子id", width = 15)
    @Dict(dictTable = "mt_purchase", dicText = "receipt_id", dicCode = "id")
    @ApiModelProperty(value = "关联的单子")
    private java.lang.String purchaseRelId;
    /**结算状态（0 未结算   1已结算）**/
    @Excel(name = "结算状态", width = 15)
    @Dict(dicCode = "settlement_status")
    @ApiModelProperty(value = "结算状态")
    private java.lang.String settlementStatus;

    /**关联的结算单的id**/
    @Excel(name = "关联的结算单的id", width = 15)
    @ApiModelProperty(value = "关联的结算单的id")
    private java.lang.String settlementId;
}
